<%@ include file="/taglibs.jsp"%>

<head>
    <title><fmt:message key="groupSaleList.title"/></title>
    <meta name="heading" content="<fmt:message key='groupSaleList.heading'/>"/>
    <meta name="menu" content="GroupSaleMenu"/>
</head>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="/editGroupSale"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<display:table name="groupSales" class="table" requestURI="" id="groupSaleList" export="true" pagesize="25">
    <display:column property="id" sortable="true" href="editGroupSale" media="html"
        paramId="id" paramProperty="id" titleKey="groupSale.id"/>
    <display:column property="id" media="csv excel xml pdf" titleKey="groupSale.id"/>
    <display:column property="title" sortable="true" titleKey="groupSale.title"/>
    <display:column property="description" sortable="true" titleKey="groupSale.description"/>
    <display:column property="valideTo" sortable="true" titleKey="groupSale.valideTo"/>
    <display:column property="price" sortable="true" titleKey="groupSale.price"/>
    <display:column property="minQuntity" sortable="true" titleKey="groupSale.minQuntity"/>
    <display:column property="supplier.id" sortable="true" titleKey="groupSale.supplier.id"/>
    <display:column property="product.id" sortable="true" titleKey="groupSale.product.id"/>
    <display:column property="status" sortable="true" titleKey="groupSale.status"/>

    <display:setProperty name="paging.banner.item_name"><fmt:message key="groupSaleList.groupSale"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="groupSaleList.groupSales"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="groupSaleList.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="groupSaleList.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="groupSaleList.title"/>.pdf</display:setProperty>
</display:table>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="/editGroupSale"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<script type="text/javascript">
    highlightTableRows("groupSaleList");
</script>